home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
ZTIMER11.ARJ
/
LZTIME.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-04-20
|
2KB
|
49 lines
@echo off
rem
rem ***************************************************************
rem * Batch file LZTIME.BAT, which builds and runs the long *
rem * period Zen Timer program LZTEST.EXE to time the code named *
rem * as the command-line parameter. To time the code in *
rem * MOVTST2.ASM, type the DOS command: *
rem * *
rem * pztime movtst2.asm *
rem * *
rem * Note that TASM and TLINK must be in the current directory *
rem * or on the current path in order for this batch file to *
rem * work. *
rem ***************************************************************
rem
rem Make sure a file to test was specified
rem
if not x%1==x goto ckexist
echo ***************************************************************
echo * Please specify a file to test. *
echo ***************************************************************
goto end
rem
rem Make sure the file exists.
rem
:ckexist
if exist %1 goto docopy
echo ***************************************************************
echo * The specified file, "%1," doesn't exist
echo ***************************************************************
goto end
rem
rem copy the file to measure to TESTCODE
rem
:docopy
copy %1 testcode
tasm lztest;
if errorlevel 1 goto errorend
tlink lztest+lztimer;
if errorlevel 1 goto errorend
lztest
goto end
:errorend
echo ****************************************************************
echo * An error occurred while building the precision Zen timer. *
echo ****************************************************************
:end